package com.hq.ims.data.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hq.ims.data.vo.BusiRepeatTypeCountDataMapstruct;
import com.hq.mybatis.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
* @author 蒋柏平
* @since 20241025
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Alias("BusiRepeatTypeCountData")
@TableName(value = "busi_repeat_type_count_data")
@ApiModel(value = "重复率表", description = "重复率表")
public class BusiRepeatTypeCountData extends BaseModel<BusiRepeatTypeCountData> implements Serializable {

    @ApiModelProperty(value = "主链")
    @TableId(value = "busi_repeat_type_count_data_id",type = IdType.ASSIGN_UUID)
    private String busiRepeatTypeCountDataId;

    @ApiModelProperty(value = "重复类型数量ID")
    @TableField(value = "busi_repeat_type_count_id")
    private String busiRepeatTypeCountId;

    @ApiModelProperty(value = "施工方")
    @TableField(value = "construction")
    private String construction;

    @ApiModelProperty(value = "项目名称")
    @TableField(value = "project_name")
    private String projectName;

    @ApiModelProperty(value = "业主方")
    @TableField(value = "owner")
    private String owner;

    @ApiModelProperty(value = "项目地址")
    @TableField(value = "project_address")
    private String projectAddress;

    @ApiModelProperty(value = "预计产值规模")
    @TableField(value = "output_scale")
    private BigDecimal outputScale;

    @ApiModelProperty(value = "发布时间")
    @TableField(value = "publish_time")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime publishTime;

    @ApiModelProperty(value = "经营信息管理ID")
    @TableField(value = "busi_info_id")
    private String busiInfoId;

    @ApiModelProperty(value = "相似度")
    @TableField(value = "similarity_rate")
    private BigDecimal similarityRate;

    public BusiRepeatTypeCountDataMapstruct.BusiRepeatTypeCountDataRowAuthVo auth(){
        BusiRepeatTypeCountDataMapstruct.BusiRepeatTypeCountDataRowAuthVo auth = new BusiRepeatTypeCountDataMapstruct.BusiRepeatTypeCountDataRowAuthVo(this);
        return auth;
    }

}
